package shiyan2;

public class TestXuanke {
	public static void main(String[] args) {
	    Course course = new Course(); 
		System.out.println(course.toString());
		Student stu0 = new Student(1,"张三 ","男");
        Student stu1 = new Student(2,"李四","男");
        Student stu2 = new Student(3,"赵五","女");
        Teacher tea0 = new Teacher(11,"刘老师   ","性别：男   ");
        Teacher tea1 = new Teacher(22,"里老师   ","性别：男   ");
        Teacher tea2 = new Teacher(33,"张老师   ","性别：男   ");
        Course cour0 = new Course(111," 英语 ","0803 ","周一   8：00");
        Course cour1 = new Course(222," 线性代数 ","2202   ","周二  13:30");
        Course cour2 = new Course(333," 马原 ","207   ","周三  8:00");
        stu0.addCourse(cour0);
        stu0.addCourse(cour1);
        stu0.addCourse(cour2);
        stu1.addCourse(cour0);
        stu1.addCourse(cour1);
        stu1.addCourse(cour2);
        stu2.addCourse(cour1);
        tea0.addCourse(cour0);
        tea1.addCourse(cour1);
        tea2.addCourse(cour2);
        
        
        stu0.removeCourse(cour0);
        stu1.removeCourse(cour2);
        stu1.removeCourse(cour1);
        
        
        
        stu0.displayCourse(); 
        stu1.displayCourse();
        stu2.displayCourse();    
        tea0.displayCourse();
        tea1.displayCourse();
        tea2.displayCourse();                      
        cour0.displayStudent();
        cour1.displayStudent();
        cour2.displayStudent(); 
	}
}